Contents | Index | < Browse | Browse >

LETTERgetcULETTER Reads a character.

Overview
#include <stdio.h>

ch = getc(f);

int ch;
FILE *f;

Portability
ANSI

Description
Reads the next character from the file pointed to by "f".

Returns
The file stream's next character or "EOF" if the end of the file has been reached or an error occured.